home *** CD-ROM | disk | FTP | other *** search
/ InfoMagic Internet Tools 1995 April / Internet Tools.iso / dos_win / winsock / maillist / 94-04.Z / 94-04 / text0030.txt < prev    next >
Encoding:
Text File  |  1994-04-30  |  1.1 KB  |  30 lines

  1. In reply to msg from ssullivan@opal.tufts.edu :
  2. >Every time that I log out from WSArchie, I get the following error
  3. >message:
  4. >Error: WSAENOTSOCK (65535) by WSArchie on my Trumpet winsock
  5. > and it doesn't seem to cause problems with the Winsock, but it's
  6. >still a little unsettling.  Any ideas what's happening here?
  7.  
  8. Its just a "closesocket(socket)" when the socket = INVALID_SOCKET
  9.  
  10. This doesn't do anything bad to the stack and is a valid call.  Usually 
  11. done by an overly cautious programmer who it taking a (usually)
  12. unnecessary step to insure the program exits cleanly.  It could be 
  13. avoided by a 
  14.  
  15. if(socket!=INVALID_SOCKET)
  16.   closesocket(socket);
  17.  
  18. (I do it myself depending on the exit from WS_FTP, WS_GMAIL,etc..)
  19.  
  20. John
  21.  
  22.  
  23. +-----------------------+-------------------------------------+
  24. | John A. Junod         |      72321.366@compuserve.com       |
  25. | 267 Hillwood Street   | -->  junodj@css583.gordon.army.mil  |
  26. | Martinez, GA, 30907   |      zj8549@trotter.usma.edu        |
  27. | (706)-860-2671        |                                     |
  28. +---------------------(sent by WS_GMAIL)----------------------+
  29.  
  30.